package com.joolun.system.domain;

import com.joolun.common.annotation.Excel;
import com.joolun.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 课程订单对象 pay_order
 * 
 * @author joolun
 * @date 2025-07-07
 */
@Data
public class PayOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户唯一标识 */
    @Excel(name = "用户唯一标识")
    private String unionId;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createId;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updateId;

    /** 逻辑删除标记（0：显示；1：隐藏） */
    private String delFlag;

    /** 订单单号 */
    @Excel(name = "订单单号")
    private String orderNo;

    /** 是否支付0、未支付 1、已支付 */
    @Excel(name = "是否支付0、未支付 1、已支付")
    private String isPay;

    /** 订单名 */
    @Excel(name = "订单名")
    private String name;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String status;

    /** 支付金额: 分 */
    @Excel(name = "支付金额: 分")
    private Long paymentPrice;

    /** 付款时间 */
    @Excel(name = "付款时间")
    private String paymentTime;

    /** 主体id */
    @Excel(name = "主体id")
    private String corpId;

    /** 订单详情 */
    @Excel(name = "订单详情")
    private String orderDetail;

    /** 现在支付流水号 */
    @Excel(name = "现在支付流水号")
    private String nowPayOrderNo;

    /** 用户所选支付渠道类型 */
    @Excel(name = "用户所选支付渠道类型")
    private String payChannelType;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUnionId(String unionId) 
    {
        this.unionId = unionId;
    }

    public String getUnionId() 
    {
        return unionId;
    }
    public void setCreateId(String createId) 
    {
        this.createId = createId;
    }

    public String getCreateId() 
    {
        return createId;
    }
    public void setUpdateId(String updateId) 
    {
        this.updateId = updateId;
    }

    public String getUpdateId() 
    {
        return updateId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setIsPay(String isPay) 
    {
        this.isPay = isPay;
    }

    public String getIsPay() 
    {
        return isPay;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setPaymentPrice(Long paymentPrice) 
    {
        this.paymentPrice = paymentPrice;
    }

    public Long getPaymentPrice() 
    {
        return paymentPrice;
    }
    public void setPaymentTime(String paymentTime) 
    {
        this.paymentTime = paymentTime;
    }

    public String getPaymentTime() 
    {
        return paymentTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unionId", getUnionId())
            .append("createId", getCreateId())
            .append("createTime", getCreateTime())
            .append("updateId", getUpdateId())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("orderNo", getOrderNo())
            .append("isPay", getIsPay())
            .append("name", getName())
            .append("status", getStatus())
            .append("paymentPrice", getPaymentPrice())
            .append("paymentTime", getPaymentTime())
            .toString();
    }
}
